package com.ruoyi.supermarket.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 退货管理对象 returns
 * 
 * @author wzy
 * @date 2024-07-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Returns extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 退货id */
    @Excel(name = "退货id")
    private Long rid;

    /** 货物外键id */
    @Excel(name = "货物外键id")
    private Long gid;

    /** 退货名称 */
    @Excel(name = "退货名称")
    private String rname;

    /** 退货价格 */
    @Excel(name = "退货价格")
    private Long rprice;

    /** 退货数量 */
    @Excel(name = "退货数量")
    private Long rnumber;

    /** 退货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rtime;

    /** 删除标记 */
    private Long deleted;

    public void setRid(Long rid) 
    {
        this.rid = rid;
    }

    public Long getRid() 
    {
        return rid;
    }
    public void setGid(Long gid) 
    {
        this.gid = gid;
    }

    public Long getGid() 
    {
        return gid;
    }
    public void setRname(String rname) 
    {
        this.rname = rname;
    }

    public String getRname() 
    {
        return rname;
    }
    public void setRprice(Long rprice) 
    {
        this.rprice = rprice;
    }

    public Long getRprice() 
    {
        return rprice;
    }
    public void setRnumber(Long rnumber) 
    {
        this.rnumber = rnumber;
    }

    public Long getRnumber() 
    {
        return rnumber;
    }
    public void setRtime(Date rtime) 
    {
        this.rtime = rtime;
    }

    public Date getRtime() 
    {
        return rtime;
    }
    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rid", getRid())
            .append("gid", getGid())
            .append("rname", getRname())
            .append("rprice", getRprice())
            .append("rnumber", getRnumber())
            .append("rtime", getRtime())
            .append("deleted", getDeleted())
            .toString();
    }
}
